import axios from "axios"
export let changePie = (data)=>{
    return {
        type:"changePie",
        payload:data
    }
}
export let getlist = ()=>{
    return (dispatch)=>{
        axios.get("/api/list").then(res=>{
            dispatch(
                {
                    type:"getlist",
                    payload:res.data
                }
            )
            
        })
    }
}